package com.tz.util;

import com.tz.AppConfig;
import com.tz.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by Administrator on 16-10-9.
 */
public class MyAcUtil {

    private static ApplicationContext ac;

    static {
        ac = new AnnotationConfigApplicationContext(AppConfig.class);
    }

    public static ApplicationContext getInstance() {
        return ac;
    }

}
